<html>
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="initial-scale=1, maximum-scale=1">
  <link rel="shortcut icon" href="/resource/img/favicon.ico">
  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="apple-mobile-web-app-status-bar-style" content="black">
  <script src="/common.js"></script>
  <title>打印请款协议</title>
</head>
<body oncontextmenu="return false" onselectstart="return false" ondragstart="return false">
<div class="print-page" style="page-break-after:always">
  <div class="print-header">
    <div class="print-logo">
      <img src="/platform/resource/img/logo.png" />
    </div>
  </div>
  <h2>
    <span>请款协议</span>
    <span>业务编号：${hzPolicy.policyno}</span>
  </h2>

  <div class="print-content">

    <div class="print-prove">
      <p><label>申请单位：</label> ${unit.name}</p>
      <p><label>联系人：</label>${hzPolicy.contact}</p>
      <p><label>联系地址：</label>${unit.regionidName} ${unit.address}</p>
      <p><label>联系电话：</label>${hzPolicy.mobile} ${hzPolicy.phone}</p>
      <p style="margin:10px 0; border-bottom:1px solid #000; padding-bottom:10px;"></p>
      <p>一、您通过 内蒙古互助保障业务管理系统 注册的账号 ${unit.account} 申请如下保障活动：</p>
    </div>

    <table class="page-table">
      <tbody><tr>
        <th>活动活动名称</th>
        <th>保障期限</th>
        <th>保障人数</th>
        <th>会费</th>
      </tr>
      <c:forEach items="${policyInsurances}" var="policyInsurance">
        <tr>
          <td>${policyInsurance.insurancename}</td>
          <td>${policyInsurance.deadline} ${policyInsurance.deadlineunit}</td>
          <td>${policyInsurance.totalperson}人</td>
          <td>￥${policyInsurance.price}</td>
        </tr>
      </c:forEach>
      <tr>
        <td colspan="4">合计：￥${hzPolicy.totalamount}</td>
      </tr>
      <tr>
        <td colspan="4">说明：上述保障活动的参保信息及会费仅作为您购买保障活动的请款证明，您最终购买的保障活动及会费以系统出具的确认书为准。</td>
      </tr>
      </tbody></table>

    <div class="print-prove">
      <p>二、您申请相应保障活动的价格及请款申请已生效并约束双方。本申请系应您的要求出具的确认，仅限于您情况使用，不对您选择的保障活动构成任何修订与补充，也不对其产生任何影响。</p>
      <p>三、您申请的保障活动在您支付会费后才可以生效。</p>
    </div>

    <div class="print-insurance-sign">
      <p>内蒙古互助保障业务管理系统</p>
      <p>打印时间：${fns:formatDateTime(printDate)}</p>
      <!-- <p>防伪编码：pzXHEzn3sk8=</p> -->
    </div>

  </div>
</div>

<script type="text/javascript">
  function remove_ie_header_and_footer() {
    var hkey_root, hkey_path, hkey_key;
    hkey_path = "HKEY_CURRENT_USER\\Software\\Microsoft\\Internet Explorer\\PageSetup\\";
    try {
      var RegWsh = new ActiveXObject("WScript.Shell");
      RegWsh.RegWrite(hkey_path + "header", "");
      RegWsh.RegWrite(hkey_path + "footer", "");
    } catch (e) { }
  }

  $(function () {
    try {
      if (!!window.ActiveXObject || "ActiveXObject" in window) {
        remove_ie_header_and_footer();
      }
    } catch (e) {

    }
    window.print();
    setTimeout(function () {
      layer.alert("资料打印完成", { closeBtn: false, title: "打印确认" }, function () {
        window.location.href = "/hzpolicy/hzPolicyFront/policyApplyDetails?id=${hzPolicy.id}";
      });
    },1000);

  });
</script>

</body>
</html>